package cn.hd.userService.mapper.function;

import cn.hd.commonService.entity.SysFunction;
import cn.hd.commonService.vo.function.FunctionAuthorityVo;
import cn.hd.userService.vo.function.FunctionInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hd
 * @since 2022-06-26
 */
@Mapper
public interface SysFunctionMapper extends BaseMapper<SysFunction> {

    @Select("select max(orderNo) from sys_function")
    public Integer maxOrderNo();

    public List<FunctionAuthorityVo> getAuthorityListByUserId(@Param("userId") Integer userId);

    public List<FunctionInfoVo> getFunctionList(@Param("parentId") String parentId,@Param("typeList") List<String>typeList );
}
